{$formStart}
<table>
    <tr>
        <th colspan="2">{$settings}</th>
    </tr>
    <tr>
        <td>{$activePublicThemeLabel}</td>
        <td><select name="publicTheme" onchange="var img = this.parentNode.getElementsByTagName('img')[0];
        var src = img.src.substring(0, img.src.lastIndexOf('/'));
        img.src = src.substring(0, src.lastIndexOf('/')) + '/' + this.value + '/preview.jpg';
        img.alt = this.value;">
        {section name=theme loop=$themes}
            {if !$themes[theme].isAdmin}
                <option value="{$themes[theme].name}"{if $publicTheme == $themes[theme].name }
                    selected="selected"
                {/if}>{$themes[theme].name}</option>
            {/if}
        {/section}
        </select><br />
        {section name=theme loop=$themes}
            {if !$themes[theme].isAdmin && ($publicTheme == $themes[theme].name) }
                <img src="{$themeRoot}/../{$themes[theme].name}/preview.jpg"
                alt="{$themes[theme].name}" />
            {/if}
        {/section}</td>
    </tr>
    <tr>
        <td>{$activeAdminThemeLabel}</td>
        <td><select name="adminTheme" onchange="var img = this.parentNode.getElementsByTagName('img')[0];
        var src = img.src.substring(0, img.src.lastIndexOf('/'));
        img.src = src.substring(0, src.lastIndexOf('/')) + '/' + this.value + '/preview.jpg';
        img.alt = this.value;">
        {section name=theme loop=$themes}
            {if $themes[theme].isAdmin}
                <option value="{$themes[theme].name}"{if $adminTheme == $themes[theme].name }
                    selected="selected"
                {/if}>{$themes[theme].name}</option>
            {/if}
        {/section}
        </select><br />
        {section name=theme loop=$themes}
            {if $themes[theme].isAdmin && ($adminTheme == $themes[theme].name) }
                <img src="{$themeRoot}/../{$themes[theme].name}/preview.jpg"
                alt="{$themes[theme].name}" />
            {/if}
        {/section}</td>
    </tr>
    <tr>
        <td>{$pageTitleLabel}</td>
        <td><input type="text" name="pageTitle" value="{$pageTitle}" /></td>
    </tr>
    <tr>
        <td>{$pageKeywordsLabel}</td>
        <td><input type="text" name="pageKeywords" value="{$pageKeywords}" /></td>
    </tr>
    <tr>
        <td>{$pageDescriptionLabel}</td>
        <td><input type="text" name="pageDescription" value="{$pageDescription}" /></td>
    </tr>
    <tr>
        <td>{$pageRobotsLabel}</td>
        <td><input type="text" name="pageRobots" value="{$pageRobots}" /></td>
    </tr>
    <tr>
        <td>{$pageAuthorLabel}</td>
        <td><input type="text" name="pageAuthor" value="{$pageAuthor}" /></td>
    </tr>
    <tr>
        <td>{$pageCopyrightLabel}</td>
        <td><input type="text" name="pageCopyright" value="{$pageCopyright}" /></td>
    </tr>
    <tr>
        <td>{$pageGeneratorLabel}</td>
        <td><input type="text" name="pageGenerator" value="{$pageGenerator}" /></td>
    </tr>
    <tr>
        <td>{$filesRootCategory}</td>
        <td><select name="filesRoot">
            {section name=file loop=$fileCategories}
                <option value="{$fileCategories[file].data.id}" {if $filesRoot == $fileCategories[file].data.id}
                selected="selected"
                {/if}>{$fileCategories[file].data.name}</option>
            {/section}
        </select></td>
    </tr>
    <tr>
        <td colspan="2"><input type="submit" value="{$save}" /></td>
    </tr>
</table>
</form>